Main Page | Class Hierarchy | Class List | Class Members

MPSpecialSandwich Class Reference

Special Sandwich send message (Type: 301). More...

#include <BustaNetInternal.h>

Inheritance diagram for MPSpecialSandwich:

BustaNetInternalMsg List of all members.

Public Member Functions

 MPSpecialSandwich (int sendID, int receiveID, SpecialSandwich sSandwich)
 CONSTRUCTOR.
int getSenderID ()
 Returns the identification number of the player sending the sandwich.
int getReceiverID ()
 Returns the identification number of the player receiving the sandwich.
SpecialSandwich getSpecialSandwich ()
 Returns the special sandwich sent.

Detailed Description

Special Sandwich send message (Type: 301).

This message defines the details of a special sandwich when it is sent from one player to another. When a player receives this message he/she is able to determine who sent a special sandwich, who is receiving that special sandwich, and what the actual special sandwich is.


Constructor & Destructor Documentation

MPSpecialSandwich::MPSpecialSandwich int  sendID,
int  receiveID,
SpecialSandwich  sSandwich
 

CONSTRUCTOR.

Creates an instance of the special sandwich message.

Parameters:
sendID The identification number of the sandwich sender
receiveID The identification number of the sandwich receiver
sSandwich The special sandwich sent between the players


Member Function Documentation

int MPSpecialSandwich::getReceiverID  ) 
 

Returns the identification number of the player receiving the sandwich.

Returns an integer identification number of the player receiving the special sandwich from the sending player.

Returns:
The identification number of the receiving player

int MPSpecialSandwich::getSenderID  ) 
 

Returns the identification number of the player sending the sandwich.

Returns an integer identification number of the player sending the special sandwich to an opponent.

Returns:
The identification number of the sending player

SpecialSandwich MPSpecialSandwich::getSpecialSandwich  ) 
 

Returns the special sandwich sent.

Returns an enumeration of the special sandwich sent between players.

Returns:
The special sandiwch sent


Generated on Sun Aug 14 22:24:58 2005 for BustaSandwich Networking by  doxygen 1.4.2-20050421